package com.ggj2013.hbh;

import nme.display.Bitmap;
import nme.display.MovieClip;
import com.ggj2013.hbh.utils.HitBox;

/**
 * @author Jonathan Moriarty
 */
class Door extends MovieClip {
	
	public var triggerHitBox:HitBox;
	public var hitBox:HitBox;
	public var openDoor:Bool;
	private var bitmap:Bitmap;
	
	public static var doorWidth = 50;
	public static var doorDepth = 20;
	
	
	public function new() {
		super();
		openDoor = false;
		
		triggerHitBox = new HitBox( doorWidth, doorDepth*4, 0xff0000 );
		triggerHitBox.y -= triggerHitBox.height / 2;
		addChild( triggerHitBox );
		
		hitBox = new HitBox( doorWidth, doorDepth, 0xff0000 );
		hitBox.y -= hitBox.height / 2;
		addChild( hitBox );
	}		

	public function update( l_deltaTime:Int ) {
		// put the code to move the door based on whats going on here -JM
	}		

}
